package cn.huiyunche.base.service.enums;

public enum AttachCategoryEnum {

    RECEIPT(10, "提车照片"),//订单
    SEND(20, "发车照片"),//运单
    DELIVER(30, "交车照片"),//运单
    RECEIVE(40, "收车照片");//订单

    private final int value;
    private final String text;

    AttachCategoryEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static AttachCategoryEnum getByValue(int value) {
        for (AttachCategoryEnum temp : AttachCategoryEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
